interface lifeInterface {
  name: string;
}
class life implements lifeInterface {
  //父类实现接口
  name: string;
  constructor(name: string) {
    this.name = name;
  }
}

class Cat extends life implements lifeInterface {
  //子类实现接口
  name: string;
  constructor(name: string) {
    super(name);
  }
}
